using System;
using System.Collections.Generic;
using System.Text;

namespace Gestion.Core.Service.Generic
{
    public interface IGenericReadOnlyBusinessService<T, ID>
    {
        /// <summary>
        /// Gets by id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        T GetById(ID id);

        /// <summary>
        /// Cunts all entities
        /// </summary>
        /// <returns></returns>
        int CountAll();

        /// <summary>
        /// Finds all entities
        /// </summary>
        /// <returns></returns>
        IList<T> FindAll();

     

    }
}
